import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { MatPaginatorIntl } from '@angular/material';

import { CookieService } from 'ng2-cookies';

import { AppComponent } from './app.component';
import { YkMaterialsModule } from './yk-materials/yk-materials.module';
import { AppRoutingModule } from './app-routing.module';
import { BlogModule } from './blog/blog.module';
import { UpdateLogsComponent } from './update-logs/update-logs.component';
import { CommitContentComponent } from './update-logs/commit-content/commit-content.component';
import { AboutMeComponent } from './about-me/about-me.component';
import { LoginComponent } from './login/login.component';
import { BlogService } from './blog.service';
import { AuthService } from './auth.service';

@NgModule({
  declarations: [
    AppComponent,
    UpdateLogsComponent,
    CommitContentComponent,
    AboutMeComponent,
    LoginComponent
  ],
  entryComponents: [
    AboutMeComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    FormsModule,
    HttpModule,
    YkMaterialsModule,
    BlogModule,
    AppRoutingModule
  ],
  providers: [
    MatPaginatorIntl,
    BlogService,
    AuthService,
    CookieService
  ],
  bootstrap: [AppComponent]
})
export class AppModule {
  constructor() { }
}
